package cn.tedu.csmall.product.pojo.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class AttributeTemplateAddNewParam implements Serializable {
    private static final long serialVersionUID = 1L;

    @NotNull(message = "属性模板名称不能为空")
    @ApiModelProperty(value = "属性模板名称", required = true, example = "可乐的属性模板")
    private String name;

    @NotNull(message = "属性模板拼音不能为空")
    @ApiModelProperty(value = "属性模板拼音", required = true, example = "shuxingmuban")
    private String pinyin;

    @ApiModelProperty(value = "属性模板检索关键字", required = true, example = "碳酸,可乐,饮料")
    private String keywords;

    @NotNull(message = "排序序号不能为空")
    @Range(max = 99, message = "排序序号值必须0~99之间")
    @ApiModelProperty(value = "属性模板排序序号", required = true, example = "66")
    private Integer sort;

}
